#include"Hash_Bucket.h"

void test1()
{
	Hash_bucket<int, int> hash;
	hash.Insert(make_pair<int, int>(2, 145));
	hash.Insert(make_pair<int, int>(12, 145));
	hash.Insert(make_pair<int, int>(24, 145));
	hash.Insert(make_pair<int, int>(22, 145));
	hash.Insert(make_pair<int, int>(27, 145));
	hash.Insert(make_pair<int, int>(25, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	hash.Insert(make_pair<int, int>(29, 145));
	//hash.print();
	//hash.Erase(make_pair<int, int>(12, 145));
	//hash.Erase(make_pair<int, int>(22, 145));
	//hash.Erase(make_pair<int, int>(2, 145));
	//hash.print();
	for (auto& it : hash)
	{
		cout << it.first << endl;
	}

	Hash_bucket<int, int> ::iterator it = hash.begin();
	cout << it->first << endl;
}

int main()
{
	test1();
	return 0;
}